package com.sinosoft.hydra.um.services.component.bacup;

import org.springframework.beans.factory.config.AbstractFactoryBean;

import java.io.IOException;
import java.util.List;

/**
 * Created by Administrator on 2016/6/20.
 */
public abstract class BakupWorker{

    protected String url;
    protected String username;
    protected String password;

    public void init(String url, String username, String password) {
        this.url = url;
        this.username = username;
        this.password = password;
    }

    protected abstract boolean valid(String dirver);

    public abstract void bakUp(String path, BakupFactoryBean.BakupListener bakupListener);

    public abstract void recoveryUp(String path, BakupFactoryBean.RecoveryListener recoveryListener);
}